var io = require('socket.io')({port:3000});
io.on('connection', function(socket){
  socket.broadcast.emit('an event', { some: 'data' }); // everyone gets it but the sender
});